package pl.th.permission.annotation;

import androidx.fragment.app.Fragment;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import pl.th.permission.DefaultProxyFragment;
import pl.th.permission.ProxyFragment;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface NeedPermission {

    String[] permissions() default {};

    int requestCode() default Integer.MIN_VALUE;

    Class<? extends ProxyFragment> fragmentClz() default DefaultProxyFragment.class;

}
